package com.mago.tis.dao;

import java.sql.Connection;
import java.sql.SQLException;
import java.sql.Statement;
import java.util.List;

public interface IBaseDao {
	String DRIVER_NAME = "com.mysql.jdbc.Driver";
	String URL = "jdbc:mysql://localhost:3306/";
	String DATABASE = "tis";
	String USER_NAME = "root";
	String PASSWORD = "root";

	Connection getConnection() throws SQLException;

	Statement getStmt() throws SQLException;

	String getQuery(String query, List paramList) throws SQLException;

	int insert(String query) throws SQLException;

	int update(String query) throws SQLException;

	int delete(String query) throws SQLException;
	
	int getPrimaryKey(String fieldName, String tableName)throws SQLException;
}
